<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div align="center">

</div>

<div style="width:500px;margin:20px auto;text-align: center">
    <table align='center' border='1' cellspacing='0'>
        <tr>
            <td>产品名称</td>
            <td>产品描述</td>
            <td>类型</td>
            <td>状态</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${userList}" var="user" varStatus="st">
            <tr>
                <td>${user.name}</td>
                <td>${user.password}</td>
                <td><a href="del?id=${user.id}">删除</a></td>
                <td><a href="getUser?id=${user.id}">修改</a></td>
            </tr>
        </c:forEach>

    </table>
    <br>
    <%--<div>
        <a href="index?start=1">[首  页]</a>
        <a href="index?start=${page.pageNum-1}">[上一页]</a>
        <a href="index?start=${page.pageNum+1}">[下一页]</a>
        <a href="index?start=${page.pages}">[末  页]</a>
    </div>--%>
    <br>
    <h1><a href="toAdd">添加</a></h1>
</div>